<template>
	<div class="index">
		<swiper :swiperData="swiperData"></swiper>
	</div>
</template>

<script>
import swiper from '@/components/my/swiper.vue';
import {requestHome} from '@/plugins/api/home.js';

export default {
	name: 'index',
	components: {swiper},
	data() {
		return {
			swiperData: []
		};
	},
	watch: {},
	computed: {},
	created() {

	},
	mounted() {
		requestHome().then(res => {
			this.swiperData = res.data;
		});
	},
	methods: {}
};
</script>

<style lang="scss" scoped>

</style>